CVE-2018-1000888
Apache PEAR Archive_Tar PHP Object Injection and PHP Unserialization Vulnerability
Description
PEAR Archive_Tar version 1.4.3 and earlier contains a CWE-502, CWE-915 vulnerability in the Archive_Tar class. There are several file operations with `$v_header['filename']` as parameter (such as file_exists, is_file, is_dir, etc). When extract is called without a specific prefix path, we can trigger unserialization by crafting a tar file with `phar://[path_to_malicious_phar_file]` as path. Object injection can be used to trigger destruct in the loaded PHP classes, e.g. the Archive_Tar class itself. With Archive_Tar object injection, arbitrary file deletion can occur because `@unlink($this->_temp_tarname)` is called. If another class with useful gadget is loaded, it may possible to cause remote code execution that can result in files being deleted or possibly modified. This vulnerability appears to have been fixed in 1.4.4.
INFO
Published Date :
Dec. 28, 2018, 4:29 p.m.
Last Modified :
Nov. 21, 2024, 3:40 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
Affected Products
                                            The following products are affected by CVE-2018-1000888
                                            vulnerability.
                                            Even if cvefeed.io is aware of the exact versions of the
                                            products
                                            that
                                            are
                                            affected, the information is not represented in the table below.
                                        
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 2.0 | MEDIUM | [email protected] | ||||
| CVSS 3.0 | HIGH | [email protected] | 
Solution
- Update the php-pear package to the latest version.
- Upgrade the affected packages for your system.
- Upgrade Drupal to version 7.60, 8.5.8, or later.
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2018-1000888.
                                        
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2018-1000888 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2018-1000888
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2018-1000888 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2018-1000888 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            CVE Modified by af854a3a-2127-422b-91ae-364da2661108Nov. 21, 2024 Action Type Old Value New Value Added Reference https://blog.ripstech.com/2018/new-php-exploitation-technique/ Added Reference https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf Added Reference https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html Added Reference https://pear.php.net/bugs/bug.php?id=23782 Added Reference https://pear.php.net/package/Archive_Tar/download/ Added Reference https://security.gentoo.org/glsa/202006-14 Added Reference https://usn.ubuntu.com/3857-1/ Added Reference https://www.debian.org/security/2019/dsa-4378 Added Reference https://www.exploit-db.com/exploits/46108/ 
- 
                            CVE Modified by [email protected]May. 14, 2024 Action Type Old Value New Value 
- 
                            CVE Modified by [email protected]Jun. 15, 2020 Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/202006-14 [No Types Assigned] 
- 
                            Modified Analysis by [email protected]Mar. 05, 2019 Action Type Old Value New Value Changed Reference Type https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html No Types Assigned https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html Third Party Advisory Changed Reference Type https://www.exploit-db.com/exploits/46108/ Exploit, Third Party Advisory https://www.exploit-db.com/exploits/46108/ Exploit, Third Party Advisory, VDB Entry Changed CPE Configuration OR *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* OR *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* 
- 
                            CVE Modified by [email protected]Feb. 12, 2019 Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html [No Types Assigned] 
- 
                            Initial Analysis by [email protected]Feb. 11, 2019 Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 (AV:N/AC:M/Au:N/C:P/I:P/A:P) Added CVSS V3 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Changed Reference Type https://pear.php.net/bugs/bug.php?id=23782 No Types Assigned https://pear.php.net/bugs/bug.php?id=23782 Broken Link, Third Party Advisory Changed Reference Type https://blog.ripstech.com/2018/new-php-exploitation-technique/ No Types Assigned https://blog.ripstech.com/2018/new-php-exploitation-technique/ Exploit, Third Party Advisory Changed Reference Type https://www.debian.org/security/2019/dsa-4378 No Types Assigned https://www.debian.org/security/2019/dsa-4378 Third Party Advisory Changed Reference Type https://pear.php.net/package/Archive_Tar/download/ No Types Assigned https://pear.php.net/package/Archive_Tar/download/ Broken Link, Third Party Advisory Changed Reference Type https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf No Types Assigned https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf Exploit, Technical Description, Third Party Advisory Changed Reference Type https://www.exploit-db.com/exploits/46108/ No Types Assigned https://www.exploit-db.com/exploits/46108/ Exploit, Third Party Advisory Changed Reference Type https://usn.ubuntu.com/3857-1/ No Types Assigned https://usn.ubuntu.com/3857-1/ Third Party Advisory Added CWE CWE-502 Added CPE Configuration OR *cpe:2.3:a:php:pear_archive_tar:*:*:*:*:*:*:*:* versions up to (including) 1.4.3 Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* 
- 
                            CVE Modified by [email protected]Jan. 31, 2019 Action Type Old Value New Value Added Reference https://www.debian.org/security/2019/dsa-4378 [No Types Assigned] 
- 
                            CVE Modified by [email protected]Jan. 15, 2019 Action Type Old Value New Value Added Reference https://usn.ubuntu.com/3857-1/ [No Types Assigned] 
- 
                            CVE Modified by [email protected]Jan. 11, 2019 Action Type Old Value New Value Added Reference https://www.exploit-db.com/exploits/46108/ [No Types Assigned] 
Vulnerability Scoring Details
Base CVSS Score: 8.8
Base CVSS Score: 6.8
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
19.57 }} -0.29%
score
0.95121
percentile
 
                         
                         
                         
                                             
                                            